Conversation
cefe021 to
003805f
Compare
|
|
First impressions: this is great, being able to add fonts and styling. In the Editor, it's good to have it shown below the wavesurfer view. In the Studio, I feel it's a bit too much in your face, for something I expect some users will be excited about, and some users will just want to ignore. Could we have an arrow thing to make showing the Styling editor optional, with the default being close in Studio? |
|
I ran a couple tests and it works for me and made the interface pink with the example provided in one example :-) To add a comment , can we have the default pre-written in the window ... For example when I start typing in the CSS section, the "example" provided will erase / I can't copy and paste the "grey" example as the initial template ( If this makes sense what I am saying...) |
If you clicked the help button, you would have seen a sample stylesheet. |
I would say not by default. By default, the style sheet should be empty. But we could have a button that populates it with the template that has all the things you can specify, that would be really helpful. |
packages/studio-web/src/app/shared/wc-styling/wc-styling-helper.html
Outdated
Show resolved
Hide resolved
packages/studio-web/src/app/shared/wc-styling/wc-styling-helper.html
Outdated
Show resolved
Hide resolved
21d0286 to
559fdc0
Compare
packages/studio-web/src/app/shared/wc-styling/wc-styling.component.html
Outdated
Show resolved
Hide resolved
559fdc0 to
a3b25bb
Compare
|
Looks good from my side! |
|
As discussed elsewhere, this is good but we would like to do more testing and a more careful review of the code, and maybe polish the interface, so we'll postpone full review merging until after ICLDC. |
a3b25bb to
2627d87
Compare
2627d87 to
04c916f
Compare
|
@joanise I need translation help |
|
Hmm, when you have a wide screen but a narrow readalong, the ratio is really weird: There are a number of different screen widths where it's not longer behaving like before, I would like to preserve the nice sizing we had settled on, and have this thing just use a small bit of real estate on the side when it's not expanded. |
296efc6 to
d2a4417
Compare
Did you resize the style window? I have modified the code to reset any resizing after you collapse the window |
e3cf9d2 to
b87540d
Compare
856b08d to
9160b88
Compare
5ad6c27 to
246ae85
Compare
roedoejet
left a comment
There was a problem hiding this comment.
Wow — this is a lot of work (and it works!). Nicely done!
I’ve left a few comments — most are very minor — and flagged a couple of smaller UI issues with screenshots that I think we should fix before merging.
One more general thought: I wonder whether it’s worth stepping back for a moment to think about whether building a full-fledged code/CSS editor directly in RAS is the right direction long term. When testing the input area, I found it a bit difficult to edit CSS without syntax highlighting, but adding syntax highlighting might edge us further into scope creep (i.e. developing our own in-browser code editor).
A couple of alternative directions that might be worth considering down the line:
Option A: Rather than having an open CSS input field, we could support uploading CSS files and link users to an external editor (e.g., CodePen) that supports SCSS, syntax highlighting, etc.
Option B: Alternatively, we could narrow the focus to theming (e.g., light/dark foreground/background colours). Users could choose colours via a picker, and we’d generate the CSS under the hood. Not sure if that would fully support your use case, but it might simplify the UX.
To be clear, I’m not suggesting these as replacements for this PR — just possible future directions that could help keep things streamlined while still giving users flexibility. Happy to chat more if helpful!
| href="data:application/readalong+xml;base64,${rasB64}" | ||
| audio="${b64Audio}" | ||
| image-assets-folder="" | ||
| ${b64Css} |
There was a problem hiding this comment.
same here, I'd rather css css-url=${b64Css}
The point of the editor is to have a way to preview CSS code you are developing with an IDE. There are very good CSS editors available, so we won't attempt to create one. However, after you have created your custom style sheet, you need a way to "quickly" preview your changes that is component seek to do I will add a copy and paste button so it is easy to transfer the style between your editor and the box.
I am in favour of this option as an add-on (feature for the future, step one is #420, then #438). This will be a use case for your basic user, and the advanced user will use the pattern I described above.
Thanks for the thoughtful review. I will incorporate the necessary changes! |
a08615f to
cc5d1bc
Compare
9b1ba5b to
38f9d38
Compare
38f9d38 to
272300b
Compare
joanise
left a comment
There was a problem hiding this comment.
This is ready to merge. No need to rebase again, just create a merge commit as is, you're close enough to the tip.
…d UI changes from PR review
272300b to
6293099
Compare


PR Goal?
Allow users to add a custom style sheet to their read along
Fixes?
Feedback sought?
the whole works
Priority?
High, would be nice for the Eric's presentation
Tests added?
Yes
How to test?
You can use the test files
Text: `This is a test.
Sentence.
Paragraph.
Page.`
Audio:
https://github.com/ReadAlongs/Studio-Web/raw/refs/heads/dev.del/feat-studio-add-css/packages/studio-web/tests/fixtures/test-sentence-paragraph-page-56k.mp3Stylesheet:
https://raw.githubusercontent.com/ReadAlongs/Studio-Web/refs/heads/dev.del/feat-studio-add-css/packages/studio-web/tests/fixtures/sentence-paragr-cust-css.cssSingleHTML file:
https://github.com/ReadAlongs/Studio-Web/raw/refs/heads/dev.del/feat-studio-add-css/packages/studio-web/tests/fixtures/sentence-paragr-cust-css.htmlConfidence?
High
Version change?
minor